package cn.wolfcode.wolf2w.business.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class NoteCondition {
    private int min;
    private int max;

    //声明静态map

    public static final Map<Integer,NoteCondition> TIME_Map = new HashMap<>();
    public static final Map<Integer,NoteCondition> CONSUME_Map = new HashMap<>();
    public static final Map<Integer,NoteCondition> DAY_Map = new HashMap<>();

    static {
        TIME_Map.put(1,new NoteCondition(1,2));
        TIME_Map.put(2,new NoteCondition(3,4));
        TIME_Map.put(3,new NoteCondition(5,6));
        TIME_Map.put(4,new NoteCondition(7,8));
        TIME_Map.put(5,new NoteCondition(9,10));
        TIME_Map.put(6,new NoteCondition(11,12));

        CONSUME_Map.put(1,new NoteCondition(1,999));
        CONSUME_Map.put(2,new NoteCondition(1000,5999));
        CONSUME_Map.put(3,new NoteCondition(6000,19999));
        CONSUME_Map.put(4,new NoteCondition(20000,Integer.MAX_VALUE));

        DAY_Map.put(1,new NoteCondition(1,3));
        DAY_Map.put(2,new NoteCondition(4,7));
        DAY_Map.put(3,new NoteCondition(8,14));
        DAY_Map.put(4,new NoteCondition(15,Integer.MAX_VALUE));

    }

}
